#!bin/bash
test=$(ps aux|grep httpd|grep -v grep)

if [ -n "$test" ]
	then
		echo "httpd is ok"
	else
		echo "httpd is no"
		/etc/rc.d/init.d/httpd start
fi